<%@ page session="false" isErrorPage="true" contentType="text/html" import="org.opencms.jsp.util.CmsJspStatusBean"%><%
	
	// initialize instance of status bean
	CmsJspStatusBean cms = new CmsJspStatusBean(pageContext, request, response, exception);
	
%><!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title><%= cms.keyStatus("error_message") %></title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style>

        * {
            line-height: 1.2;
            margin: 0;
        }

        html {
            color: #888;
            display: table;
            font-family: sans-serif;
            height: 100%;
            width: 100%;
        }

        body {
            display: table-cell;
            vertical-align: middle;
            margin: 2em auto;       
        }

        .wrapper {
            margin: -20px auto 0;
            width: 500px;
        }

        header{
            margin: 0 0 10px;
        }

        h1 {
            color: #555;
            font-size: 2em;
            font-weight: bold;
        }

        h2 {
            font-size: 1.2em;
            font-weight: normal;
        }

        .logo{
            margin: 0 0 20px 0;
            display: block;
            height: 42px;
            width: 170px;    
            text-indent: -9999px;  
            background: url("") no-repeat;
            background-size: contain;   
        }

        p{
            margin: 5px 0 0;
            font-size: 1.2em;
        }

        p span{
            font-weight: bold;
        }

        footer{
            margin: 10px 0 0;
        }

        footer a{
            font-size: 0.7em;
            color: #888;
            text-decoration: none;
            transition: color 1s;
        }
        footer a:hover{
            color: #b31b34;
            transition: color 1s;
        }


        @media only screen and (max-width: 500px) {

            .wrapper {
                width: 95%;
            }

            h1, h2, .logo {
                font-size: 1.5em;
            }

            .logo{
                width: 100%;
                margin: 0 0 10px;
            }

            h1, h2{
                float: left;
                margin: 0 5px 0 0;
            }

            header:after{
                content: '';
                display: table;
                clear: both;
            }

        }

    </style>
</head>
<body>
    <div class="wrapper">
        <header>
            <a href="http://www.opencms.org/" class="logo">OpenCms</a>		
			<!-- Status error messages start -->
			<h1><%= cms.getStatusCode() %></h1>	<h2><%= cms.keyStatus("error_message") %></h2>
		</header>
		<main>
			<p><%= cms.keyStatus("error_description") %></p>
		</main>
        <footer>
            <a href="http://www.opencms.org/">This server runs OpenCms - the open source content management system</a>
        </footer>
    </div>
</body>
</html>